/*
客户管理

*/
import httpRequest from '@/utils/httpRequest'
// 获取已订阅数据
export function getAllModular (data) {
  return httpRequest({
    url: '/modular/getAllModular',
    method: 'get',
    params: data
  })
}

// 获取未订阅数据
export function getUnearnedModular (data) {
  return httpRequest({
    url: '/modular/getUnearnedModular',
    method: 'get',
    params: data
  })
}

// 保存订阅申请记录
export function save (data) {
  return httpRequest({
    url: '/modular/saveModularApply',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}

// 订阅申请记录列表
export function modularApplyList (data) {
  return httpRequest({
    url: '/modular/modularApplyList',
    method: 'get',
    params: data
  })
}

// 撤销模块订阅申请
export function updateModularApply (data) {
  return httpRequest({
    url: '/modular/updateModularApply',
    method: 'post',
    data: data
  })
}
